package wang.wangby.utils.threadpool;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import lombok.extern.slf4j.Slf4j;


@Slf4j
abstract public class Event{

	abstract public void execute() throws Exception;

	public void runInThreadPool(){
		try{
			this.execute();
		}catch(Exception e){
			log.error("执行系统事件出错:"+e.getMessage(),e);
		}
	}

}
